package com.nxk.modules.exception;

public enum RequestStatus {

    SUCCESS("200","请求成功"),

    ERROR_REQUEST("400","服务器不理解请求"),
    ERROR_NOT_AUTO("401","未授权,请前往登陆"),
    EOORE_REFRESH_LOGIN("402","会话失效,请重新登陆"),
    ERROR_NOT_PERM("403","你没有权限访问此页面"),
    ERROR_NOT_RESULT("404","没有找到你要的资源"),
    ERROR_OVERTIME("408","请求超时"),
    ERROR_REQUEST_OVERSIZE("413","请求体过大"),
    ERROR_SERVER("500","内部服务器错误"),
    ERROR_REFUSE("509","不可操作请求"),
    ERROR_UNKNOWN("599","未知错误");




    private String code;
    private String message;

    RequestStatus(String code, String message) {
        this.code = code;
        this.message = message;
    }

    RequestStatus() {
    }

    public String getCode() {
        return code;
    }


    public String getMessage() {
        return message;
    }


}
